package com.atguigu.springcloud.bind;

import org.springframework.cloud.stream.annotation.Output;
import org.springframework.cloud.stream.messaging.Source;
import org.springframework.messaging.MessageChannel;

/**
 * @author timiv
 */
public interface MyOutBind {

    /**
     * Name of the output channel.
     */
    String OUTPUT_1 = "output-1";
    String OUTPUT_2 = "output-2";

    /**
     * @return output channel
     */
    @Output(MyOutBind.OUTPUT_1)
    MessageChannel output();

    @Output(OUTPUT_2)
    MessageChannel output2();
}
